package com.yonyou.pmclouds.plan.mapper;


import com.yonyou.pmclouds.basecom.dao.BaseMapper;
import com.yonyou.pmclouds.plan.entity.PlanTempletVO;
import org.apache.ibatis.annotations.Param;

public interface PlanTempletMapper extends BaseMapper<PlanTempletVO> {
    String[] getChildrenPks(String tempId);

    int deceaseChildCount(@Param("tempId") String tempId, @Param("descNum") int descNum);

    int deletePlanBatch(String[] pks);

    PlanTempletVO[] queryPlanByRoot(String rootId);

    PlanTempletVO[] searchPlanTemp(@Param("keyword") String keyword, @Param("pkTenant") String pkTenant);

    int countMilestoneRelatedPlan(@Param("pkMilestone") String pkMilestone);

    /**
     * 根据项目查询相关模板
     * @param pkOrg
     * @param type
     * @return
     */
    PlanTempletVO[] autoSearchPlanTemp(@Param("pkTenant") String pkTenant,@Param("pkOrg") String pkOrg,@Param("type") String type);
}